//
//  UIFactory.swift
//  SinaSwift
//
//  Created by Yan on 16/3/14.
//  Copyright © 2016年 baidu. All rights reserved.
//

import UIKit

class UIFactory {
    
    class func factoryLabelWith (title:String,textColor:UIColor,fontSize:CGFloat,alignment: NSTextAlignment = .Center) -> UILabel{
        let label = labelWith(title, textColor: textColor, fontSize: fontSize,alignment: alignment)
        return label
    }
    
    class func factoryButtonWithImage (imageName:String,backImageName:String) -> UIButton {
        let button = buttonWithImage(imageName, backImageName: backImageName)
        return button
    }
    
    class func factoryButtonWithTitle (title:String,fontSize:CGFloat,titleColor:UIColor,backImageName:String) -> UIButton {
        let button = buttonWithTitle(title, fontSize: fontSize, titleColor: titleColor, backImageName: backImageName)
        return button
    }
    class func factoryButtonWithTitle (title:String,fontSize:CGFloat,titleColor:UIColor,imageName:String) -> UIButton {
        let button = buttonWithTitle(title, fontSize: fontSize, titleColor: titleColor, imageName: imageName)
        return button
    }
}
